#include <bits/stdc++.h>
using namespace std;

mt19937 rnd(time(0));

int main() {
  cout << 200000 << endl;
  int n = 10000;
  cout << n << endl;
  while (n --) {
    cout << rnd() % 10000 + 1 << endl;
  }
}